package com.appbee.cm.client.regionunit.ui;

import javax.inject.Inject;

import com.appbee.cm.client.regionunit.presenter.ModulActivityMapper;
import com.google.gwt.activity.shared.ActivityManager;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.SimplePanel;

public class ActivityPanel extends SimplePanel
{
	private final ModulActivityMapper activityMapper;

	@Inject
	public ActivityPanel(ModulActivityMapper activityMapper, EventBus eventBus)
	{
		this.activityMapper = activityMapper;
		// Start activitymanager
		ActivityManager aMan = new ActivityManager(activityMapper, eventBus);
		aMan.setDisplay(this);

	}

	public void setId(String id)
	{
		activityMapper.setId(id);
	}
}
